package com.dwxt.cdms.dao.yumeng;

import com.dwxt.cdms.applets.dto.IndexGraphDayResDTO;
import com.dwxt.cdms.applets.dto.IndexGraphResDTO;
import com.dwxt.cdms.applets.dto.IndexReqDTO;
import com.dwxt.cdms.entity.yumeng.StepData;
import com.dwxt.cdms.view.wristwatch.StepDataView;
import com.dwxt.cdms.vo.SelectWatchDataVo;
import com.dwxt.cdms.vo.SelectWatchVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface StepDataMapper extends Mapper<StepData> {

    int countStepDataByCondition(StepData stepData);

    List<StepDataView> selectStepDataByCondition(SelectWatchDataVo selectWatchDataVo);

    int deleteStepDataByCustomerIds(@Param("customerIds") Integer[] customerIds);

    int replaceBindingWatchUser(@Param("customerId") Integer customerId, @Param("deviceIdentity") String deviceIdentity);

    List<Integer> selectCustomerIdsByGroup(SelectWatchDataVo selectWatchDataVo);

    StepDataView selectStepDataViewByNewest(Integer customerId);

    List<StepDataView> selectStepDataViewListByCustomerId(SelectWatchVo selectWatchVo);

    List<IndexGraphDayResDTO> selectGraphWithDay(IndexReqDTO indexReqDTO);

    List<IndexGraphResDTO> selectGraphData(IndexReqDTO indexReqDTO);

    List<IndexGraphResDTO> selectStepGraphData(IndexReqDTO indexReqDTO);
}